﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CandidateFeeAllocation.aspx.cs" Inherits="home_CandidateFeeAllocation" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">


<head runat="server">
    <base target="_self" />
    <link rel="stylesheet" href="../css/bootstrap.min.css" type="text/css" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <link href="../App_Themes/layout/layout.css" rel="stylesheet" type="text/css" />
    <script>
        function calendarShown(sender, args) {
            sender._popupBehavior._element.style.zIndex = 10005;
        }
    </script>
    <%--<script type="text/javascript">
        function RefreshParent() {
            alert('XXXXXXX');
            document.getElementById("<%=mp1.ClientID %>").style("display:none");
            //var closebutton = window.opener.document.getElementById('PopUpClose');
            //alert(closebutton);
            window.close();
        }
    </script> --%>

    <title></title>
</head>
<body>

    <script type='text/javascript'>



        function sum() {

            var total = 0;
            total.toPrecision(2);

            var textboxes = document.getElementsByClassName('fees');

            for (var i = 0; i < textboxes.length; i++) {
                if (textboxes[i].value != '') {
                    total += parseFloat(textboxes[i].value);
                }
            }
            document.getElementById("<%=txtTotalFeesUSD.ClientID %>").value = total.toFixed(2).toString();

            var final = 0.00;

            if (document.getElementById("<%=txtRate.ClientID %>") != null) {
                var rate = document.getElementById('<%=txtRate.ClientID %>').value;
                if (total != '' && rate != '') {
                    final = parseFloat(parseFloat(total) * parseFloat(rate));
                    document.getElementById("<%=txtTotalFeesINR.ClientID %>").value = final.toFixed(2).toString();
                }
            }
            else {
                document.getElementById("<%=txtTotalFeesINR.ClientID %>").value = total.toFixed(2).toString();
            }
        }
         function sumLocal() {

            var total = 0;
            total.toPrecision(2);

            var textboxes = document.getElementsByClassName('feesLocal');

            for (var i = 0; i < textboxes.length; i++) {
                if (textboxes[i].value != '') {
                    total += parseFloat(textboxes[i].value);
                }
            }
            document.getElementById("<%=txtAssessorLocalFeesAmount.ClientID %>").value = total.toFixed(2).toString();
            
        }
        function CalculateByCurrency() {
            var total = document.getElementById("<%=txtTotalFeesUSD.ClientID %>").value;
            var rate = 0.00;
            rate = document.getElementById("<%=txtRate.ClientID %>").value;
            var final = 0.00;
            if (parseFloat(rate) <= 0.00) {
                document.getElementById("<%=lblCurrencyRange.ClientID %>").innerText = "Currency Rate should be greater than zero.";
            }
            else {
                if (total != '' && rate != '') {
                    final = parseFloat(parseFloat(total) * parseFloat(rate));
                    document.getElementById("<%=txtTotalFeesINR.ClientID %>").value = final.toFixed(2).toString();
                }
                if (total != '' && rate == '') {
                    document.getElementById("<%=txtTotalFeesINR.ClientID %>").value = total.toFixed(2).toString();
                }
                document.getElementById("<%=lblCurrencyRange.ClientID %>").innerText = "";
            }
        }
        function InvoiceDate(date) {

            var re = /^(0[1-9]|[12][0-9]|3[01])[/](0[1-9]|1[012])[/](19|20)\d\d$/;
            if (date.value != '') {
                document.getElementById("<%=lblDtError.ClientID %>").innerText = "";
                if (re.test(date.value)) {
                    document.getElementById("<%=lblDtError.ClientID %>").innerText = "";
                    return true;
                }
                else {
                    document.getElementById("<%=lblDtError.ClientID %>").innerText = "Date must be mm/dd/yyyy format";
                    return false;
                }
            }
            else {
                document.getElementById("<%=lblDtError.ClientID %>").innerText = "";
            }
        }
    </script>
    <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptID" runat="server"></asp:ScriptManager>

            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <table style="margin-left: 20px; width: 100%;">
                        <tr>
                            <td style="text-align: left; margin-left: 5%;">
                                <h2>Candidate Fees & Assessor Allocation</h2>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style="vertical-align: central; width: 96%;" border="1">
                                    <tr style="display: none">
                                        <td style="width: 15%;" align="right"></td>
                                        <td style="width: 20%;"></td>
                                        <td style="width: 13%;"></td>
                                        <td style="width: 20%;"></td>
                                        <td style="width: 30%;"></td>

                                    </tr>
                                    <tr>
                                        <td align="right">Registration No&nbsp;</td>

                                        <td>
                                            <asp:Label ID="lblRegistrationNo" runat="server" Text="" Font-Bold="true"></asp:Label></td>
                                        <td align="right">Candidate Name&nbsp;</td>
                                        <td>
                                            <asp:Label ID="lblCandidateName" runat="server" Text="" Font-Bold="true"></asp:Label></td>
                                        <td>Assessor Local Fees</td>

                                    </tr>
                                    <tr>
                                        <td align="right">Country Name&nbsp;</td>

                                        <td>
                                            <asp:Label ID="lblCountryName" runat="server" Text="" Font-Bold="true"></asp:Label></td>
                                        <%-- <td align="right">Prefered Candidate For GD&nbsp;</td>
                                        <td>
                                            <asp:Label ID="lblCandidateType" runat="server" Text="" Font-Bold="true"></asp:Label>
                                        </td>--%>
                                        <td style="display: none">
                                            <asp:Label ID="lblCandidateType" runat="server" Text="" Font-Bold="true"></asp:Label>
                                        </td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                    </tr>

                                    <%-- <tr>
                                        <td colspan="7"></td>
                                    </tr>--%>
                                    <%--<tr runat="server" id="trRAM">
                                        <td style="width: 07%;"  align="right">Moderator Assessor &nbsp;<font color="red">*</font>&nbsp;  </td>
                                        <td style="width: 1%;">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                        <td style="width: 08%;">
                                            <asp:DropDownList ID="ddlModeratorAssessor" runat="server" Width="200px" AutoPostBack="true" OnSelectedIndexChanged="ddlModeratorAssessor_SelectedIndexChanged"></asp:DropDownList></td>
                                        <td  style="width: 05%;">
                                            <asp:RequiredFieldValidator runat="server" ID="rqRAM" ErrorMessage="Select Moderator" ControlToValidate="ddlModeratorAssessor" InitialValue="0"
                                                ValidationGroup="Save" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator></td>
                                        <td style="width: 9%;"  align="right">Fees &nbsp;<font color="red">*</font>&nbsp;</td>
                                        <td style="width: 1%;">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                        <td style="width: 69%;">
                                            <asp:TextBox ID="txtModeratorAssessorFees" runat="server" Width="100px" CssClass="fees" onchange="sum();" OnTextChanged="txtModeratorAssessorFees_TextChanged" ClientIDMode="Static" AutoPostBack="True" CausesValidation="True" Style="text-align: right" ></asp:TextBox>(GBP)
                                            <asp:RegularExpressionValidator ID="rgRAM" runat="server" ControlToValidate="txtModeratorAssessorFees" Display="Dynamic"
                                                ErrorMessage="Enter fees like 100 or 100.00"
                                                ValidationExpression="^\d+(\.\d\d)?$" ValidationGroup="Save" ForeColor="red"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator runat="server" ID="rfvModeratorAssessor" ControlToValidate="txtModeratorAssessorFees" Display="Dynamic"
                                                    ErrorMessage="Enter Moderator Assessor Fees" ForeColor="Red" ValidationGroup="Save"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>--%>
                                    <%--<tr>
                                        <td colspan="7"></td>
                                     </tr>--%>
                                    <tr runat="server" id="trRARL">
                                        <td align="right">Assessor &nbsp;<font color="red">*</font>&nbsp;</td>

                                        <td>
                                            <asp:DropDownList ID="ddlResearchLeadAssessor" runat="server" Width="200px" AutoPostBack="true" OnSelectedIndexChanged="ddlResearchLeadAssessor_SelectedIndexChanged"></asp:DropDownList>
                                            <br />
                                            <asp:RequiredFieldValidator runat="server" ID="rqRARL" ErrorMessage="Select Research Lead" ControlToValidate="ddlResearchLeadAssessor" InitialValue="0"
                                                ValidationGroup="Save" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </td>
                                        <td align="right">Fees &nbsp;<font color="red">*</font>&nbsp;</td>
                                        <td>
                                            <asp:TextBox ID="txtResearchLeadAssessorFees" runat="server" Width="100px" CssClass="fees" onchange="sum();" AutoPostBack="True" CausesValidation="True" OnTextChanged="txtResearchLeadAssessorFees_TextChanged" Style="text-align: right"></asp:TextBox>(GBP)
                                            <br />
                                            <asp:RegularExpressionValidator ID="rgRARL" runat="server" ControlToValidate="txtResearchLeadAssessorFees" Display="Dynamic"
                                                ErrorMessage="Enter fees like 100 or 100.00" ValidationExpression="^\d+(\.\d\d)?$" ValidationGroup="Save" ForeColor="red"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator runat="server" ID="rfvResearchLeadAssessor" ControlToValidate="txtResearchLeadAssessorFees" Display="Dynamic"
                                                ErrorMessage="Enter Research Lead Fees" ForeColor="Red" ValidationGroup="Save"></asp:RequiredFieldValidator>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlAssessorLocalFeesCurrency" runat="server" Width="140px" AutoPostBack="true" OnSelectedIndexChanged="ddlAssessorLocalFeesCurrency_SelectedIndexChanged">
                                                <asp:ListItem Text="Local Currenct" Value="0"></asp:ListItem>
                                            </asp:DropDownList>
                                            &nbsp;&nbsp;
                                            <asp:TextBox ID="txtAssessorLocalFees" runat="server" ClientIDMode="Static" placeholder="Enter Local Amount" Width="140px" CssClass="feesLocal" onchange="sumLocal();"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <%-- <tr>
                                        <td colspan="6"></td>
                                    </tr>--%>
                                    <tr>
                                        <td align="right">Auditor Assessor&nbsp;<font color="red">*</font>&nbsp;</td>

                                        <td>
                                            <asp:DropDownList ID="ddlAuditorAssessor" runat="server" Width="200px" AutoPostBack="true" OnSelectedIndexChanged="ddlAuditorAssessor_SelectedIndexChanged"></asp:DropDownList>
                                            <br />
                                            <asp:RequiredFieldValidator runat="server" ID="rqAD" ErrorMessage="Select Auditor" ControlToValidate="ddlAuditorAssessor" InitialValue="0"
                                                ValidationGroup="Save" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </td>
                                        <td align="right">Fees &nbsp;<font color="red">*</font>&nbsp;</td>
                                        <td>
                                            <asp:TextBox ID="txtAuditorAssessorFees" runat="server" Width="100px" CssClass="fees" onchange="sum();" AutoPostBack="True" CausesValidation="True" OnTextChanged="txtAuditorAssessorFees_TextChanged" Style="text-align: right"></asp:TextBox>(GBP)
                                            <br />
                                            <asp:RegularExpressionValidator ID="rgAD" runat="server" ControlToValidate="txtAuditorAssessorFees" Display="Dynamic"
                                                ErrorMessage="Enter fees like 100 or 100.00"
                                                ValidationExpression="^\d+(\.\d\d)?$" ValidationGroup="Save" ForeColor="red"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator runat="server" ID="rfvAuditorAssessor" ControlToValidate="txtAuditorAssessorFees" Display="Dynamic"
                                                ErrorMessage="Enter Auditor Fees" ForeColor="Red" ValidationGroup="Save"></asp:RequiredFieldValidator>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <%-- <tr>
                                        <td colspan="6"></td>
                                    </tr>--%>
                                    <tr>
                                        <td align="right">Industry Expert &nbsp;<font color="red">*</font>&nbsp;</td>

                                        <td>
                                            <asp:DropDownList ID="ddlIndustryExpert" runat="server" Width="200px" AutoPostBack="true" OnSelectedIndexChanged="ddlIndustryExpert_SelectedIndexChanged"></asp:DropDownList>
                                            <br />
                                            <asp:RequiredFieldValidator runat="server" ID="rqIE" ErrorMessage="Select Industry Expert" ControlToValidate="ddlIndustryExpert" InitialValue="0"
                                                ValidationGroup="Save" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </td>

                                        <td align="right">Fees &nbsp;<font color="red">*</font>&nbsp;</td>

                                        <td>
                                            <asp:TextBox ID="txtIndustryExpertFees" runat="server" Width="100px" CssClass="fees" onchange="sum();" AutoPostBack="true" CausesValidation="true" OnTextChanged="txtIndustryExpertFees_TextChanged" Style="text-align: right"></asp:TextBox>(GBP)
                                            <br />
                                            <asp:RegularExpressionValidator ID="rgIE" runat="server" ControlToValidate="txtIndustryExpertFees" Display="Dynamic"
                                                ErrorMessage="Enter fees like 100 or 100.00"
                                                ValidationExpression="^\d+(\.\d\d)?$" ValidationGroup="Save" ForeColor="red"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator runat="server" ID="rfvIndustryExpert" ControlToValidate="txtIndustryExpertFees" Display="Dynamic"
                                                ErrorMessage="Enter Industry Expert Fees" ForeColor="Red" ValidationGroup="Save"></asp:RequiredFieldValidator>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <%-- <tr>
                                        <td colspan="6"></td>
                                    </tr>--%>
                                    <tr>
                                        <td align="right">IQKS Manager </td>
                                        <td>
                                            <asp:DropDownList ID="ddlIQKSManager" runat="server" Width="200px" AutoPostBack="true" OnSelectedIndexChanged="ddlIQKSManager_SelectedIndexChanged" Visible="false"></asp:DropDownList>
                                            <%--<br>
                                                 <asp:RequiredFieldValidator runat="server" ID="rqIQKSMG" ErrorMessage="Select IQKS MAnager" ControlToValidate="ddlIQKSManager" InitialValue="0"
                                                ValidationGroup="Save" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>--%>
                                        </td>
                                        <td align="right">Fees &nbsp;<font color="red">*</font>&nbsp;</td>
                                        <td>
                                            <asp:TextBox ID="txtIQKSManagerFees" runat="server" Width="100px" CssClass="fees" onchange="sum();" AutoPostBack="true" CausesValidation="true" OnTextChanged="txtIQKSManagerFees_TextChanged" Style="text-align: right"></asp:TextBox>(GBP)
                                            <asp:RegularExpressionValidator ID="rgIQKSMG" runat="server" ControlToValidate="txtIQKSManagerFees" Display="Dynamic"
                                                ErrorMessage="Enter fees like 100 or 100.00"
                                                ValidationExpression="^\d+(\.\d\d)?$" ValidationGroup="Save" ForeColor="red"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator runat="server" ID="rfvIQKSMGR" ControlToValidate="txtIQKSManagerFees" Display="Dynamic"
                                                ErrorMessage="Enter IQKS Manager Fees" ForeColor="Red" ValidationGroup="Save"></asp:RequiredFieldValidator>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <%--  <tr>
                                        <td colspan="6"></td>
                                    </tr>--%>
                                    <tr>
                                        <td align="right">Total Out of Expenses </td>
                                        <td></td>
                                        <td align="right">Fees &nbsp;<font color="red">*</font>&nbsp;</td>

                                        <td>
                                            <asp:TextBox ID="txtTotalOutofExpenses" runat="server" Width="100px" CssClass="fees" onchange="sum();" AutoPostBack="true" CausesValidation="true" OnTextChanged="txtTotalOutofExpenses_TextChanged" Style="text-align: right"></asp:TextBox>(GBP)
                                            <br />
                                            <asp:RegularExpressionValidator ID="rgTotalFees" runat="server" ControlToValidate="txtTotalOutofExpenses" Display="Dynamic"
                                                ErrorMessage="Enter fees like 100 or 100.00"
                                                ValidationExpression="^\d+(\.\d\d)?$" ValidationGroup="Save" ForeColor="red"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator runat="server" ID="rfvTotalOutofExpenses" ControlToValidate="txtTotalOutofExpenses" Display="Dynamic"
                                                ErrorMessage="Enter Total Out of Expenses Fees" ForeColor="Red" ValidationGroup="Save"></asp:RequiredFieldValidator>
                                        </td>
                                        <td>  <asp:DropDownList ID="ddlLocation" runat="server" Width="140px" AutoPostBack="true" OnSelectedIndexChanged="ddlLocation_SelectedIndexChanged">
                                                <asp:ListItem Text="Location" Value="0"></asp:ListItem>
                                            </asp:DropDownList>
                                            &nbsp;&nbsp;
                                            <asp:TextBox ID="txtAssessorLocationFees" runat="server" ClientIDMode="Static" placeholder="Enter Fees Amount" Width="140px" CssClass="feesLocal" onchange="sumLocal();"></asp:TextBox></td>
                                    </tr>
                                    <%-- <tr>
                                        <td colspan="6">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td colspan="6"></td>
                                    </tr>--%>
                                    <tr style="padding: 5px 5px 5px 5px">
                                        <td align="right" style="vertical-align: top; padding-top: 5px">Portal Administration Expenses </td>

                                        <td>
                                            <asp:TextBox runat="server" ID="txtPortalAdministrationRemark" MaxLength="400" Width="250px" TextMode="MultiLine" Height="64px"></asp:TextBox>
                                        </td>
                                        <td align="right" style="vertical-align: top; padding-top: 5px">Fees &nbsp;<font color="red">*</font>&nbsp;</td>

                                        <td style="vertical-align: top; padding-top: 5px">
                                            <asp:TextBox ID="txtPortalAdministrationFees" runat="server" Width="100px" CssClass="fees" onchange="sum();" AutoPostBack="true" CausesValidation="true" OnTextChanged="txtPortalAdministrationFees_TextChanged" Style="text-align: right"></asp:TextBox>(GBP)
                                            <br />
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtPortalAdministrationFees"
                                                Display="Dynamic" ErrorMessage="Enter fees like 100 or 100.00"
                                                ValidationExpression="^\d+(\.\d\d)?$" ValidationGroup="Save" ForeColor="red"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator runat="server" ID="rfvAdmin" ControlToValidate="txtPortalAdministrationFees" Display="Dynamic"
                                                ErrorMessage="Enter Portal Administration Fees" ForeColor="Red" ValidationGroup="Save"></asp:RequiredFieldValidator>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <%-- <tr>
                                        <td colspan="6"></td>
                                    </tr>--%>
                                    <tr>
                                        <td align="right"></td>
                                        <td></td>
                                        <td align="right">Total Fees</td>

                                        <td>
                                            <asp:TextBox ID="txtTotalFeesUSD" runat="server" Width="100px" onchange="CalculateByCurrency();" AutoPostBack="true" CausesValidation="true" OnTextChanged="txtTotalFeesUSD_TextChanged" Style="text-align: right"></asp:TextBox>(GBP)
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtAssessorLocalFeesAmount" runat="server" Width="100px" Style="text-align: right"></asp:TextBox>
                                            <asp:Label ID="lblLocalCurrencyCode" runat="server" Text=""></asp:Label>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">Currency Type        </td>

                                        <td>
                                            <asp:DropDownList ID="ddlCurrencyType" runat="server" Width="200px" OnSelectedIndexChanged="ddlCurrencyType_SelectedIndexChanged"
                                                AutoPostBack="true">
                                            </asp:DropDownList></td>
                                        <td></td>
                                        <td></td>
                                        <td></td> 
                                       <%-- <td runat="server" id="tdCURR0" visible="false"></td>
                                        <td runat="server" id="tdCURR1" visible="false" align="right"></td>
                                        <td runat="server" id="tdCURR2" visible="false">&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                        <td runat="server" id="tdCURR3" visible="false"></td>--%>
                                    </tr>
                                    <tr id="trDateRow" runat="server" visible="false">
                                        <td align="right">Date &nbsp;<font color="red">*</font>&nbsp;</td>

                                        <td>
                                            <div class="controls input-append date form_date" data-date="" data-date-format="dd MM yyyy" data-link-field="dtp_input1" data-link-format="yyyy-mm-dd">
                                                <asp:TextBox ID="txtCurrencyDate" runat="server" MaxLength="12" ViewStateMode="Enabled"
                                                    Width="100px" cultureinvariantvalues="true" onblur="InvoiceDate(this);"></asp:TextBox>
                                                <cc1:CalendarExtender ID="mdlStartDate" runat="server" Format="dd/MM/yyyy" PopupButtonID="popcalender1"
                                                    OnClientShown="calendarShown" TargetControlID="txtCurrencyDate" />
                                                <i class="icon-th" id="popcalender1"></i>
                                            </div>
                                            <br />
                                            <asp:RequiredFieldValidator runat="server" ID="rfvDate" ControlToValidate="txtCurrencyDate" Display="Dynamic"
                                                ErrorMessage="Select Currency Date" ForeColor="Red" ValidationGroup="Save"></asp:RequiredFieldValidator>
                                            <asp:Label runat="server" ID="lblDtError" Text="" ForeColor="Red" Visible="true"></asp:Label>
                                        </td>
                                        <td align="right">Currency Rate &nbsp;<font color="red">*</font>&nbsp;</td>
                                        <td>
                                            <asp:TextBox ID="txtRate" placeholder="0.00 or 00.00" runat="server" Width="100px" onchange="CalculateByCurrency();" Style="text-align: right"></asp:TextBox>
                                            <br />
                                            <asp:RequiredFieldValidator runat="server" ID="rfvRate" ControlToValidate="txtRate" Display="Dynamic"
                                                ErrorMessage="Enter Currency Rate" ForeColor="Red" ValidationGroup="Save"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="rgRate" runat="server" ControlToValidate="txtRate" Display="Dynamic"
                                                ErrorMessage="Enter Rate like 100 or 100.00"
                                                ValidationExpression="^\d+(\.\d\d)?$" ValidationGroup="Save" ForeColor="red"></asp:RegularExpressionValidator>
                                            <asp:Label runat="server" ID="lblCurrencyRange" Text="" ForeColor="red"></asp:Label></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td align="right"></td>
                                        <td></td>
                                        <td align="right">Grand Total Fees </td>

                                        <td>
                                            <asp:TextBox ID="txtTotalFeesINR" runat="server" Width="100px" Style="text-align: right"></asp:TextBox>
                                            <asp:Label ID="lblCurrencyCode" runat="server" Text=""></asp:Label>
                                        </td>

                                        <td>
                                        </td>
                                    </tr>
                                    <tr style="height: 15px;">
                                        <td colspan="5" style="border: none"></td>
                                    </tr>
                                    <tr>
                                        <td colspan="5" style="text-align: center;border:none">
                                            <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" OnClientClick="RefreshParent();" Text="Save" ValidationGroup="Save" />
                                            &nbsp;&nbsp;&nbsp;&nbsp;
                                                <asp:Button ID="btnClear" runat="server" OnClick="btnClear_Click" Text="Clear" />
                                        </td>
                                    </tr>
                                    <tr style="height: 15px;">
                                        <td colspan="5" style="border: none"></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>

                    </table>

                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </form>
</body>
</html>
